<?php

namespace App\Admin\Filters\Game;

use App\Admin\Filters\Filter;

class GameFilter extends Filter
{
    protected $simpleFilters = [
        'gameName','gameGroup','company','sdk','status'
    ];

    protected $filters = [

    ];

    protected  $alias = [
        'gameName'=>'games.id',
        'gameGroup'=>'games.pid',
        'company'=>'games.cp_id',
        'sdk'=>'games.classify',
        'status'=>'games.status'
    ];

    protected function fieldName($val)
    {
        $this->builder->where('field_name', $val);
    }
}
